package cn.kshost.zqyg.manager;

import cn.kshost.zqyg.manager.properties.MinioProperties;
import cn.kshost.zqyg.manager.properties.UserAuthProperties;
import cn.kshsot.zqyg.common.log.annotation.EnableLogAspect;
import lombok.extern.log4j.Log4j;
import lombok.extern.log4j.Log4j2;
import lombok.extern.slf4j.Slf4j;
import org.apache.catalina.User;
import org.junit.platform.commons.logging.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.io.*;

@Slf4j
@EnableConfigurationProperties({UserAuthProperties.class, MinioProperties.class})
@SpringBootApplication
@EnableScheduling
@ComponentScan(basePackages = "cn.kshost.zqyg")
@EnableLogAspect
@EnableAsync
public class ZqygManagerApplication {
    public static void main(String[] args) throws IOException {
        SpringApplication.run(ZqygManagerApplication.class, args);
    }

}
